package com.ruoyi.rsikManage.service.Impl;

import com.alibaba.fastjson2.JSONArray;
import com.alibaba.fastjson2.JSONObject;
import com.ruoyi.rsikManage.domain.MonitorPoint;
import com.ruoyi.rsikManage.domain.VideoDiagnosisResult;
import com.ruoyi.rsikManage.mapper.VideoDiagnosisResultMapper;
import com.ruoyi.rsikManage.service.JyService;
import com.ruoyi.rsikManage.service.VideoDiagnosisResultService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.http.HttpEntity;
import org.springframework.http.HttpMethod;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Service;
import org.springframework.web.client.RestTemplate;

import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Service
public class VideoDiagnosisResultImpl implements VideoDiagnosisResultService {
    @Autowired
    VideoDiagnosisResultMapper videoDiagnosisResultMapper;

    @Override
    public List<VideoDiagnosisResult> selectVideoDiagnosisResult() {
        return videoDiagnosisResultMapper.selectVideoDiagnosisResult();
    }

    @Override
    public int insertVideoDiagnosisResult(VideoDiagnosisResult videoDiagnosisResult) {
        return videoDiagnosisResultMapper.insertVideoDiagnosisResult(videoDiagnosisResult);
    }

    @Override
    public int updateVideoDiagnosisResultById(VideoDiagnosisResult videoDiagnosisResult) {
        return videoDiagnosisResultMapper.updateVideoDiagnosisResultById(videoDiagnosisResult);
    }

    @Override
    public int deleteVideoDiagnosisResultById(Integer id) {
        return videoDiagnosisResultMapper.deleteVideoDiagnosisResultById(id);
    }

    @Override
    public int deleteVideoDiagnosisResultByIds(Integer[] ids) {
        return videoDiagnosisResultMapper.deleteVideoDiagnosisResultByIds(ids);
    }

    @Override
    public int deleteAllVideoDiagnosisResult() {
        return videoDiagnosisResultMapper.deleteAllVideoDiagnosisResult();
    }
}
